{if isset($type) && isset($data)}
	{if isset($name)}
    	<select name="{$name}" id="{$name}">
    {/if}
	<option value="0">{$optall}</option>
    {html_options options=$data}
    {if isset($name)}
    	</select>
        {if isset($action)}
        	<script type="text/javascript">var LOCATION_TYPE = {$type};</script>
        	
            	<script type="text/javascript" src="{$smarty.const.HOST_JS}map/location.js?v={$smarty.const.UPDATE_JS}"></script>
            
        {/if}
    {/if}
{elseif isset($addr)}
	<input type="text" name="{$addr}" id="{$addr}" maxlength="{$smarty.const.VL_NAME_MAXLENGTH}"/>
{/if}
